<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLogAccountBandsTable extends Migration
{
    /**禁封账号
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('log_account_bands', function (Blueprint $table) {
            $table->increments('id');
            $table->bigInteger('account_id')->comment('角色账号ID');
            $table->string('account', 30)->comment('角色账号');
            $table->integer('platform_id')->comment('平台id');
            $table->string('delay_time', 30)->comment('解禁时间');
            $table->string('admin_name', 30)->comment('管理员名');
            $table->string('client_ip', 30)->comment('客户端ip');
            $table->tinyInteger('status')->default(0)->comment('0禁止，1解禁');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('log_account_bands');
    }
}
